package com.itheima.animaldemo;

public class Test03 {
    public static void main(String[] args) {
        //A a = new A();
       // B b = new B();
       // b.sing();
        //C c = new C();
    }

}


abstract class A {
    abstract void sing();
    abstract  void dance();

}

abstract class B extends A {
    @Override
    void sing() {
        System.out.println("大碗宽面");
    }
}
class G extends B{

    @Override
    void dance() {

    }
}

abstract class C extends A {

}
    abstract class D extends C{

}
class E  extends D{

    @Override
    void sing() {

    }

    @Override
    void dance() {

    }
}